.keybindings {
  .dialog {
    max-width: 500px;
    margin: auto;
    max-height: calc(100vh - 2rem);
  }

  .dialog-content {
    color: var(--primary-color);
    padding: 10px 20px 20px;
    max-height: calc(100vh - 2rem - 56px);
  }

  ul {
    padding-left: 0;
  }

  li {
    margin-bottom: 6px;
    list-style: none;
  }

  kbd {
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    margin: 4px;
    padding: 0 5px;
    font-size: 12px;
    min-width: 8px;
    text-align: center;
    display: inline-block;
    box-shadow: 0 1px 1px gray;
  }
}

.keybindings__key-item {
  display: flex;
  align-items: baseline;
}

.keybindings__key-list {
  min-width: 180px;
  display: inline-block;
  text-align: right;
}

.keybindings__key-description {
  display: inline-block;
  margin-left: 4px;
}

.keybindings__sections {
  position: relative;
  max-height: 480px;
  overflow-y: auto;

  section {
    margin-right: 2em;

    h1 {
      font-size: 18px;
    }
  }
}
